package com.acoreful.bootsample.event.core.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

import com.acoreful.bootsample.event.core.MsgEvent;
@Component
public class MsgEventListener implements ApplicationListener<MsgEvent> {
	private Logger logger=LoggerFactory.getLogger(getClass());
	@Override
	public void onApplicationEvent(MsgEvent msgEvent) {
		logger.info("1.========================================");
		logger.info("2.========================================{}",msgEvent);
		logger.info("3.========================================");
		
		
	}

}
